<?php

namespace app\api\model;

use think\Model;

class UserModel extends Model
{
    protected $name = 'user';


    //企业用户列表
    public function list()
    {
        $userList = $this->select();
        return $userList;
    }

    public function findByUserId($params)
    {

        $map['userid'] = $params['userid'];
        $user = $this->where($map)->find();

        return $user;

    }


}